var express = require('express');
var router = express.Router();
var mongoose = require("../model/zhr")
var {listModel} = require("../model/zhr")
/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});
router.get("/list",async(req,res)=>{
  const data = await listModel.find()
  res.send({data})
})
module.exports = router;
